import request from '@/utils/request'

//  查询隐患类别树
export function getDefectTypeTree(params) {
  return request({
    url: '/business/defectType/defectType/getDefectTypeTree',
    method: 'get',
    params
  })
}

//  查询隐患类别树
export function getDefectTypeList(params) {
  return request({
    url: '/business/defectType/defectType/list',
    method: 'get',
    params
  })
}

//  查询隐患类别详情
export function getDefectTypeInfoById(id){
  return request({
    url: `/business/defectType/defectType/${id}`,
    method: 'get',
  })
}

//  查询隐患类别详情
export function getDefectTypeInfoByItemSerial(itemSerial){
  return request({
    url: `/business/defectType/defectType/getInfoByItemSerial/${itemSerial}`,
    method: 'get',
  })
}
